</td><td>
<ul id="menu">
  <li><%= link_to _('Editing Data'), :action => "index" %> </li>
  <li><%= _'Pending Validate Data' %></li>
  <li> <%= link_to _('Validated Data'), :action => "validated_list" %> </li>
</ul>
</td><td>
  <% unless @meta.title.empty?%>
    <p class="tArea">  <%=@meta.title%> <br/><%=_'Title'%></p> </td><td>
  <%end%>
  
  <%unless @meta.alternatives.empty?%>
     <p class="tArea">
    <% for alternative in @meta.alternatives %>
    <%= alternative.title%> <%= link_to "＊", :action => "editan", :id => alternative %>/<%= link_to "－", { :action => 'destroyan', :id => alternative }, :confirm => _('Are you sure to delete that?'), :method => :post%><br />
    <% end %><%=_'Alternative Title'%></p>
  </td><td>
  <%end%>
  <% unless @meta.creators.empty? %>
   <p class="tArea"> 
  <% for creator in @meta.creators %>
    <%= creator.name %><%= creator.create_type.title %> <%= link_to "＊", :action => "edit_creator", :id => creator %>/<%= link_to "－", {:action => "destroy_creator", :id => creator}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
  <% end %> <%=_'Creator'%></p>
   </td><td>
   <% end %>
   <% unless @meta.contributors.empty? %>
   <p class="tArea">
  <% for contributor in @meta.contributors %>
    <%= contributor.name %><%= contributor.contribute_type.title %> <%= link_to "＊", :action => "edit_contributor", :id => contributor %>/<%= link_to "－", {:action => "destroy_contributor", :id => contributor}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
  <% end %> <%=_'Contributor'%></p>
   </td><td>
   <% end %>
   <% unless @meta.publishers.empty? %>
   <p class="tArea">
  <% for publisher in @meta.publishers %>
    <%= publisher.title %>， <%= publisher.city %> <%= link_to "＊", :action => "edit_publisher", :id => publisher %>/<%= link_to "－", {:action => "destroy_publisher", :id => publisher}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
  <% end %> <%=_'Publisher'%></p>
   </td><td>
   <% end %>
   <% unless @meta.dats.empty? %>
   <p class="tArea">
  <% for dat in @meta.dats %>
    <%= dat.date_type.title %> <%= dat.title %> <%= link_to "＊", :action => "edit_date", :id => dat %>/<%= link_to "－", {:action => "destroy_date", :id => dat}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
  <% end %> <%=_'Date'%></p>
  </td><td>
  <% end %>
  <% unless @meta.subject_words.empty? %>
  <p class="tArea">
   <% for subject_word in @meta.subject_words %>
   <%= subject_word.word %>;
   <%= link_to "＊", :action => "edit_subject_word", :id => subject_word %>/<%= link_to "－", {:action => "destroy_subject_word", :id => subject_word}, :confirm => _('Are you sure to delete that?'), :method => :post%>
   <% end %><br/> <%=_'Subject Words'%> </p>
   </td>
     <td>
     <% end %>
     <% unless @meta.classifications.empty? %>
     <p class="tArea">
       <% for classification in @meta.classifications %>
         <%= classification.value %>（<%= classification.classification_type.title %>）<%= link_to "＊", :action => "edit_classification", :id => classification %>/<%= link_to "－", {:action => "destroy_classification", :id => classification}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
       <% end %><%=_'Classification'%></p> 
     </td>
   <td>
   <% end %>
   <% unless @meta.abstract.empty? %>
   <p class="tArea"><%= @meta.abstract %> <br/><%=_'Abstract'%></p></td>
    <td>
    <% end %>
    <%if @meta.table_of_contents.size > 0 %>
    <p class="tArea">  
    <%= link_to _('Table of Contents'), :action => "table_of_contents", :id => @meta %>
     </p></td><td>
     <% end %>
     <% unless @meta.type.locale.empty? %>
     <p class="tArea">
       <%= @meta.type.locale %> <br/>
       <%=_'Type'%>
     </p>
     </td>
    <td>
    <% end %>
    <% unless @meta.edition.empty? %>
    <p class="tArea">  <%= @meta.edition %><br/> <%=_'Edition'%></p></td>
    <td>
    <% end %>
    <% unless @meta.price.empty? %>
    <p class="tArea">  <%= @meta.price %><br/><%=_'Price'%></p></td>
    <td>
    <% end %>
    <% unless @meta.languages.empty? %>
    <p class="tArea"> 
    <% for language in @meta.languages %>
    <%= language.language_encoding.title %> <%= link_to "＊", :action => "edit_language", :id => language %>/<%= link_to "－", {:action => "destroy_language", :id => language}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
  <% end %> <%=_'Language of Document'%> </p>
   </td>
     <td>   
     <% end %>
     <% unless @meta.identifiers.empty? %>
     <p class="tArea"> 
     <% for identifier in @meta.identifiers %>
       <%= identifier.value %><small>[<%= identifier.identifier_type.title %>]</small><%= link_to "＊", :action => "edit_identifier", :id => identifier %>/<%= link_to "－", {:action => "destroy_identifier", :id => identifier}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
     <% end %> <%=_'Identifier'%> </p>
      </td>
  <td>
  <% end %>
    <% unless @meta.audiences.empty? %>
    <p class="tArea">
  <% for audience in @meta.audiences %>
    <%= audience.audience_type.about %> <%= link_to "＊", :action => "edit_audience", :id => audience %>/<%= link_to "－", {:action => "destroy_audience", :id => audience}, :confirm => _('Are you sure to delete that?'), :method => :post %>
  <% end %> <br/> <%=_'Audience'%> </p>
   </td><td>
   <% end %>
   <% unless @meta.coverage_spatial.empty? %>
     <p class="tArea"><%= @meta.coverage_spatial %> <br/><%=_'Coverage Spatial'%></p></td><td>  <p class="tArea"> <%= @meta.coverage_temporal %><br/><%=_'Coverage Temporal'%></p></td>
    <td>
      <% end %>
      <% unless @meta.documents.empty? %>
      <p class="tArea">
    <% for document in @meta.documents %>
      <%= document.comment %> : <%= link_to document.name, :controller => "documents", :action => "show", :id => document %> <%= link_to "＊", :action => "edit_document", :id => document %>/<%= link_to "－", {:action => "destroy_document", :id => document}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
    <% end %> <%=_'Document'%> </p>
     </td>
    <td>
      <% end %>
      <% unless @meta.children.empty? %>
       <p class="tArea">
    <% for child in @meta.children %>
      <%= link_to child.title, :id => child %>、
    <% end %> <br/><%=_'Children Documents'%></p>
     </td>
    <td>
    <% end %>
    <% unless @meta.parent_id == nil %>
      <p class="tArea">
     <%= link_to @meta.parent.title, :id => @meta.parent %>
    <br/><%=_'Parent Document'%> </p>
     </td>
    <td>
    <% end %>
    <% unless @meta.citations.empty? %>
       <p class="tArea">  
    <% for citation in @meta.citations %>
      <%= citation.title %>，<%= citation.author %>，<%= citation.source %> <%= link_to "＊", :action => "edit_citation", :id => citation %>/<%= link_to "－", {:action => "destroy_citation", :id => citation}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
    <% end %>  <%=_'Citation'%></p>
     </td>
    <td>
    <% end %>
    <% unless @meta.versions.empty? %>
       <p class="tArea">
    <% for version in @meta.versions %>
      <%= link_to version.version_doc.title, :action => 'show_versions', :id => version.version_doc.id%>
    <% end %> <br/><%=_'Related Version'%></p>
     </td>
    <td>
    <% end %>
    <% unless @meta.replaces.empty? %>
      <p class="tArea"> <%=_'This Document replace'%>
    <% for replace in @meta.replaces %>
      <%= link_to replace.title, :action => "show_replace", :id => replace%>
    <% end %> <br/><%=_'Replace'%></p>
     </td>
    <td>
    <% end %>
    <% unless @meta.locations.empty? %>
       <p class="tArea">
    <% for location in @meta.locations %>
      URI: <%= location.uri %> <%= link_to "＊", :action => "edit_location", :id => location %>/<%= link_to "－", {:action => "destroy_location", :id => location}, :confirm => _('Are you sure to delete that?'), :method => :post %><br />
      <%=_'Location URLs'%>：<a href="<%= location.url %>"> <%= location.name  %></a><br />
      <%=_'Locate'%>： <%= location.locate %><br />
      <%=_'Call Number'%>： <%= location.find_id %><br />
      <%=_'Accession Number'%>： <%= location.property_id %><br />
    <% end %> <br/><%=_'Location'%></p>
     </td>
    <td>
    <% end %>
    <% unless @meta.snapshots.empty? %>
       <p class="tArea">
    <% for snapshot in @meta.snapshots %>
      <%= image_tag (url_for (:action => "snapshot", :id => snapshot) ), :id => 'id', :style => 'style;' %> <%= link_to "－", {:action => "destroy_snapshot", :id => snapshot}, :confirm => _('Are you sure to delelte that?'), :method => :post %>
    <% end %> <br/><%=_'Snapshots'%></p>
    </td>
    <td>
    <% end %>
<p class="tArea"><br/><br/>
<% form_tag :action => "unfinish", :id => @meta do %>
<%= link_to _('Back'), :action => 'pending' %>  <%= submit_tag _"This data need edit" %>
<% end %>
</p>
